package view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.JLabel;

import java.awt.Font;
import java.awt.event.ActionListener;

import javax.swing.SwingConstants;
/**
 * gui for analyze customers
 * @author liran
 *
 */
public class AnalyzeGui extends AbstractGUI {
	/**
	 * generate analyze button
	 */
	private JButton btnGenerateAnaly = null;
	/**
	 * back to main menu 
	 */
	private JButton btnMainMenu = null;
	
	
	

	/**
	 * Create the frame.
	 */
	public AnalyzeGui() {
		setTitle("Analyze");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(500, 200, 450, 300);
//	getContentPane().setBorder(new EmptyBorder(5, 5, 5, 5));
	//	setContentPane(contentPane);
		getContentPane().setLayout(null);
		
		btnGenerateAnaly = new JButton("Generate analyze");
		btnGenerateAnaly.setBounds(64, 96, 269, 44);
		getContentPane().add(btnGenerateAnaly);
		
		btnMainMenu = new JButton("Main menu");
		btnMainMenu.setBounds(310, 0, 124, 23);
		getContentPane().add(btnMainMenu);
		
		JLabel lblAnala = new JLabel("Analyze customer");
		lblAnala.setHorizontalAlignment(SwingConstants.CENTER);
		lblAnala.setFont(new Font("SimSun-ExtB", Font.ITALIC, 30));
		lblAnala.setBounds(48, 29, 297, 44);
		getContentPane().add(lblAnala);
		setVisible(true);
	}
	
	
	/**
	 * add action for btnMainMenu
	 * @param I
	 */
	public void AddbackMAc(ActionListener I )
	{
		btnMainMenu.addActionListener(I);
	}
	/**
	 * add action for btnGenerateAnaly
	 * @param I
	 */
	public void AddGenerateAC(ActionListener I)
	{
		btnGenerateAnaly.addActionListener(I);
	}
	
	
}
